//
//  BaseCollectionViewCell.m
//  Baby
//
//  Created by simon on 16/1/18.
//  Copyright © 2016年 simon. All rights reserved.
//

#import "BaseCollectionViewCell.h"

@implementation BaseCollectionViewCell

- (void)awakeFromNib
{
    [super awakeFromNib];
}

- (void)setData:(id)data
{
    
}

- (void)setData:(id)data withIndexPath:(NSIndexPath *)indexPath
{
    
}


- (CGFloat)getCellHeightWithContentData:(id)data{
    return 0.f;
}

/**
 根据indexPath和data 数据（可以是dataArray或model）计算高度
 
 @param indexPath indexPath
 @param data data数据
 @return 计算的高度
 */
- (CGFloat)getCellHeightWithContentIndexPath:(NSIndexPath *)indexPath data:(id)data
{
    return 0.f;
}


+ (CGSize)itemSize{
    return CGSizeMake(([[UIScreen mainScreen] bounds].size.width) - [self sectionInset].left-[self sectionInset].right, ceilf(0));
}

+ (UIEdgeInsets)sectionInset{
    return UIEdgeInsetsMake(0,12,12,12);
}
@end
